#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>



char* categorizeBox(int length, int width, int height, int mass)
{
    int maxd = fmax(length, fmax(width, height));
    long long vol = 1LL * length * width * height;
    bool isBulky = maxd >= 10000 || vol >= 1000000000, isHeavy = mass >= 100;
    if (isBulky && isHeavy)
    {
        return "Both";
    }
    else if (isBulky)
    {
        return "Bulky";
    }
    else if (isHeavy)
    {
        return "Heavy";
    }
    else
    {
        return "Neither";
    }
}